package com.study.designPattern.create.abstractFactory;

/**
 * @author ysy
 * @version 1.0
 * @Title: CarFactoryProducer
 * @Note <b>ProjectName:</b> Pre-research
 * <br><b>PackageName:</b> com.study.designPattern.create.abstractFactory
 * <br><b>ClassName:</b>
 * <br><b>Date:</b>

 */
public class CarFactoryProducer {

    public static AbstractCarFactory getCarFactory(String factoryType){
        if("type".equals(factoryType)){
            return new CarTypeFactory();
        }else if("power".equals(factoryType)){
            return new CarPowerFactory();
        }
        return null;
    }
}
